<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <h1><%=data%>成功</h1>
    <p>将在<b>3</b>秒之后跳转到<a href="/">首页</a></p>
  </body>
  <script>
    let time = 3;
    setInterval(() => {
      time--;
      document.querySelector("b").innerText = time;
    }, 1000);

    setTimeout(() => {
      window.location.href = "/";
    }, 3000);
  </script>
</html>
